MotorError

An error that can occur on a motor.

Entries

Link copied to clipboard

No error occurred.

Link copied to clipboard

Motor is stalled.

Link copied to clipboard

Motor has been put in security mode.

Link copied to clipboard

Motor has been stopped for safety reasons.

Link copied to clipboard

Battery voltage out of bounds.

Link copied to clipboard

Incorrect number of LIPO cells.

Link copied to clipboard

Too hot or too cold Cypress temperature.

Link copied to clipboard

Defective MOSFET or broken motor phases.

Link copied to clipboard

Some other, undocumented error occurred.

Functions

Link copied to clipboard
open fun valueOf(name: String): MotorError

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
open fun values(): Array<MotorError>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.